import getEnumsManager from '@/common/enum';

export const ApplyStateEnum = getEnumsManager([
  { value: '2', text: '办理中', name: 'Processing' },
  { value: '3', text: '已驳回', name: 'Rejected' },
  { value: '4', text: '已办结', name: 'Completed' },
  { value: '5', text: '已恢复', name: 'Recovered' },
  { value: '8', text: '已作废', name: 'Voided' }
]);

export const RecoverStateEnum = getEnumsManager([
  { value: '2', text: '办理中', name: 'Processing' },
  { value: '3', text: '已驳回', name: 'Rejected' },
  { value: '4', text: '已办结', name: 'Completed' },
  { value: '8', text: '已作废', name: 'Voided' }
]);

export const HistoryTypeEnum = getEnumsManager([
  { value: '01', text: 'die', name: 'Die' },
  { value: '03', text: 'leave', name: 'Leave' },
  { value: '04', text: 'cease', name: 'Cease' }
]);

export const ApprovalStateEnum = getEnumsManager([
  { value: '01', text: '通过', name: 'Passed', default: true },
  { value: '02', text: '驳回', name: 'Rejected' },
  { value: '08', text: '作废', mapping: 'Scraped' }
]);

export const RecoverApprovalStateEnum = getEnumsManager([
  { value: '01', text: '通过', name: 'Passed', default: true },
  { value: '02', text: '驳回', name: 'Rejected' }
]);

export const transferStateEnum = getEnumsManager([
  { value: '01', text: '通过', name: 'Passed', default: true },
  { value: '02', text: '驳回', name: 'Rejected' },
  { value: '05', text: '回撤', mapping: 'Revoked' },
  { value: '08', text: '作废', mapping: 'Scraped' }
]);

